const express = require("express");
const { connectRedis } = require("../redis");
const router = express.Router();
let redis = null;
connectRedis().then((res) => {
  redis = res;
  console.log(redis);
});
// 导入首页路由处理函数对应的模块
const home_handler = require("../router_handler/index");
const log_handler = require("../router_handler/log");
/* GET home page. */
router.get("/", home_handler.home);
//日志
router.get("/log$", log_handler);

module.exports = router;
